package  com.hs.core.action;

import javax.servlet.ServletContext;

import org.apache.struts.actions.DispatchAction;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
public class BaseDispatchAction extends DispatchAction{

	 
//	protected IService getBaseService(String serviceStrMame) {
//		ServletContext servletContext = super.getServlet().getServletContext();
//		WebApplicationContext wac = WebApplicationContextUtils
//				.getRequiredWebApplicationContext(servletContext);
//		return (IService) wac.getBean(serviceStrMame);
//	}
}
